package com.hsogoo.study.spi;

import com.sun.tools.javac.util.ServiceLoader;

/**
 * @Author huangsaigang
 * Created @2019-09-27.
 */
public class Test {

    public static void main(String[] args) {
        ServiceLoader<SpiInterface> spiInterfaces = ServiceLoader.load(SpiInterface.class);

        for(SpiInterface spi : spiInterfaces){
            spi.test();
        }

    }
}
